package com.example.saiweisi.controller.systemAdminController;

import com.example.saiweisi.common.Result;
import com.example.saiweisi.service.interf.IStepService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/step")
@RestController
@CrossOrigin
@Slf4j
public class StepController {
    @Autowired
    private IStepService stepService;
    //获取所有的步骤
    @GetMapping("/getall")
    public Result getall(){
        return Result.success(stepService.getAllStep());
    }
}
